package net.hn.hnms.sys.system.controller.feign;


import net.hn.hnms.sys.system.api.domain.SysRole;
import net.hn.hnms.sys.system.remote.RemoteRoleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;

@RestController
@RequestMapping("/remoteRole")
@ApiIgnore
public class RemoteRoleController {

    @Autowired
    RemoteRoleServiceImpl roleService;

    @GetMapping(value = "/getRoleInfoById")
    public SysRole getRoleInfoById(@RequestParam("id") Long id) {
        return roleService.selectRoleById(id);
    }


}
